﻿	<div id="sidebar">
		<ul>

			<?php if ( is_single() ) {
			?> <li>
			<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Post Info",'verygoogle'); ?></h4>
				<p style='line-height:1.2em'>
						<?php _e('This entry was posted','verygoogle'); ?>
						<?php 
							echo wp_time_since();	
							_e(' on ','verygoogle'); 
							the_time(__('l, F jS, Y','verygoogle'));
							_e(' at ','verygoogle');
							the_time(); 
						?>
						<?php 
							_e(" and is filed under ",'verygoogle');
							the_category(__(', ','verygoogle'));
							_e(". You can follow any responses to this entry through the ",'verygoogle');
							post_comments_feed_link(__('RSS 2.0','verygoogle'));
							_e(' feed.','verygoogle');
						?>
						<br />
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open 
							_e('You can <a href="#respond">leave a response</a>, or <a href="','verygoogle');?>
							 <?php trackback_url(); ?>
							 <?php _e('" rel="trackback">trackback</a> from your own site.','verygoogle');?>

						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Only Pings are Open 
							_e('Responses are currently closed, but you can <a href="','verygoogle');?>
							<?php trackback_url(); ?>
							<?php _e('" rel="trackback">trackback</a> from your own site.','verygoogle');?>

						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not 
							_e('You can skip to the end and leave a response. Pinging is currently not allowed.','verygoogle');?>

						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Neither Comments, nor Pings are open
							_e('Both comments and pings are currently closed.','verygoogle');?>

						<?php } edit_post_link(__('Edit this entry.','verygoogle'),'',''); ?>

				</p>
			</div></div></div></div></div>
			</li> <?php }?>
			
			<li id="related_post">
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Related Posts",'verygoogle'); ?></h4>
				<?php 
					if(function_exists('st_related_posts'))
					{
						st_related_posts( 'number=10&title=&post_id=' . get_the_ID() );
					}
					else
					{
						_e('Please install Simple Tags plugin.','verygoogle');
					}
				?>
				</div></div></div></div></div>
			</li>					
				
			<li id="rss_link">
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Recommendation",'verygoogle'); ?></h4>
				<ul>
				<li><a href="http://fairyfish.net/planet/">CN WordPress Planet</a></li>
				</ul>
				<br />
				<h4><?php _e("Subscribe",'verygoogle'); ?></h4>
					<table>
						<tbody>
							<tr>
								<td><a style="position:relative" href="http://feed.feedsky.com/charlestang">FeedSky</a></td>
								<td><a style="position:relative" href="http://feeds.feedburner.com/charlestang">FeedBurner</a></td>
							</tr>
							<tr>
								<td><a class="fszhuaxia" href="http://www.zhuaxia.com/add_channel.php?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到抓虾</a></td>
								<td><a class="fbzhuaxia" href="http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到抓虾</a></td>
							</tr>
							<tr>
								<td><a class="fsgoogle" href="http://fusion.google.com/add?feedurl=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Google</a></td>
								<td><a class="fbgoogle" href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Google</a></td>
							</tr>
							<tr>								
								<td><a class="fsyahoo" href="http://add.my.yahoo.com/rss?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Yahoo</a></td>
								<td><a class="fbyahoo" href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Yahoo</a></td>
							</tr>
							<tr>
								<td><a class="fsxianguo" href="http://www.xianguo.com/subscribe.php?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到鲜果</a></td>
								<td><a class="fbxianguo" href="http://www.xianguo.com/subscribe.php?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到鲜果</a></td>
							</tr>
						</tbody>
					</table>
				</div></div></div></div></div>
			</li>
			<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
			<?php endif; ?>
			<li style="background-color:#dfc">
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("30Days Top 10",'verygoogle'); ?></h4>
				<ul>
				<?php 
					if (function_exists('get_timespan_most_viewed')){
						my_get_timespan_most_viewed('post', 10, 30, true, false, 0);
					} else {
						echo 'Please Active PostViews+ Plugin!';
					}
				?>
				</ul><br />
				<h4><?php _e("Top 10",'verygoogle'); ?></h4>
				<ul>
				<?php
					if (function_exists('get_most_viewed')){
						my_get_most_viewed('post', 10, 0 ,true ,false);
					} else {
						echo 'Please Active PostViews+ Plugin!';
					}
				?>
				</ul>
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Recent Comments",'verygoogle'); ?></h4>
				<div id="rc_c"></div><!--rc_c for recent comments content-->
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4>Archives</h4>
				<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> 
  					<option value="\"><?php echo attribute_escape(__('Select Month')); ?></option> 
  					<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> 
  				</select>
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4>Categories</h4>
				<ul>
				<?php wp_list_categories('show_count=1&title_li='); ?>
				</ul>
				</div></div></div></div></div>
			</li>
			

			<?php 
			$cate_before='<li><div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">';
			$cate_after='</div></div></div></div></div></li>';
			wp_list_bookmarks('orderby=rand&limit=20&title_li=&title_before=<h4>&title_after=</h4>&category_before='.$cate_before.'&category_after='.$cate_after);				
			?>

			<li style="line-height:0px;font-size:0px"></li>
			
		</ul>
	</div>

